ChatListPage

fun ChatListPage(modifier: Modifier = Modifier, viewModel: ChatbotViewModel = hiltViewModel(), onNavigateToChatbot: () -> Unit, onNavigateToChatLog: (String) -> Unit, openDrawer: () -> Unit)

Main function for the ChatListPage, used to display a list of previously completed chatLogs or cognitive behavioural therapy activities.

Relies on helper composables ChatListPageContent and LogItem. ChatListPageContent is used for rendering the content of the page, while LogItem defines the composables that are listed on the page.

Parameters

modifier

Optional modifier for the composable.

viewModel

The view model for accessing the list of logs.

onNavigateToChatbot

Callback function for navigating to the chatbot page.

onNavigateToChatLog

Callback function for navigating to a specific chat log.

openDrawer

Callback function for opening the navigation drawer.